package orm.jpa.first.datasource;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

import orm.jpa.first.datasource.support.DataSourceTypeHolder;

public class AlternativeRoutingDataSource extends AbstractRoutingDataSource {

	@Override
	protected Object determineCurrentLookupKey() {
		return DataSourceTypeHolder.getDataSourceType();
	}
}
